package com.kude.manager.support;

import java.util.List;


public class InCondition extends AbstractCondition {
	
	private String key;
	private String value = "";
	
	public InCondition(String key, List<Integer> values) {
		this.key=key;
		for(int tmp : values){
			value += tmp + ",";
		}
		value = value.substring(0, value.length() - 1);
	}
	
	String toSql() {
		return new StringBuilder().append(key).append(" in(").append(value).append(")").toString();
	}
	
}
